<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8">
        <title>
           首页-购买
        </title>
        <style>
            input{margin-bottom: 30px}
        </style>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="../css/x-admin.css" media="all">
        <link type="text/css" rel="stylesheet" href="../js/jedate/skin/jedate.css">
        <script type="text/javascript" src="../js/jedate/src/jedate.js"></script>
    </head>

    <body>
        <div class="x-body">
            <form class="layui-form" id="gmForm" method="post" action="/cggl/update">
                <input type="hidden" name="bId" value="${buy.bId}"/>
                <div>
                    <label for="bCode">购买编号：</label>
                    <input type="text" name="bCode" id="bCode" value="${buy.bCode}">
                    <font color="red">*</font>
                </div>
                <div>
                    <label for="bType">购买型号：</label>
                    <input type="text" name="bType" id="bType" value="${buy.bType}">
                    <font color="red">*</font>
                </div>
                <div>
                    <label for="cpType">产品类型：</label>
                    <input type="text" name="cpType" id="cpType" value="${buy.cpType}">
                    <font color="red">*</font>
                </div>
                <div>
                    <label for="buyNumber">数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;量：</label>
                    <input type="text" name="buyNumber" id="buyNumber" value="${buy.buyNumber}">
                    <font color="red">*</font>
                </div>
                <div>
                    <label for="sqPerson">申&nbsp请&nbsp人 ：</label>
                    <input type="text" name="sqPerson" id="sqPerson" value="${buy.sqPerson}">
                    <font color="red">*</font>
                    <div class="jeinpbox">
                        <label class="jelabel" for="sqTime" style="text-align: right">修改时间：</label>
                        <input type="text" name="sqTime" class="jeinput" id="sqTime" placeholder="修改时间" align="center" value="<fmt:formatDate value="${buy.sqTime}" pattern="YYYY-MM-dd"/>">
                    </div>
                <div>
                    <label for="cpUse">用&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;途：</label>
                    <textarea name="cpUse" id="cpUse"  value="" style="width:200px; height:50px">${buy.cpUse}</textarea>
                </div>
                <div>
                    <label >所属科室：</label>
                    <select name="keshi" id="keshi" style="width: 50px;">
                        <option value="0" selected="selected">---请选择---</option>
                        <c:forEach var="keshi" items="${keshis}">
                            <option value="${keshi.kid}">${keshi.kname}</option>
                        </c:forEach>
                    </select>
                    <font color="red"></font>
                </div>

        </div>
                <div class="providerAddBtn" style="margin-bottom:50px;margin-left: 120px">
                    <input type="submit" name="add" id="add" value="保存" >
                    <input type="button" id="back" name="back" value="返回" >
                </div>
            </form>
        </div>
        <script src="../lib/layui/layui.js" charset="utf-8">
        </script>
        <script src="../js/x-layui.js" charset="utf-8">
        </script>
        <script>
            layui.use(['form','layer','upload'], function(){
                $ = layui.jquery;
              var form = layui.form
              ,layer = layui.layer;
            });


            var enLang = {
                name: "en",
                month: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"],
                weeks: ["SUN", "MON", "TUR", "WED", "THU", "FRI", "SAT"],
                times: ["Hour", "Minute", "Second"],
                timetxt: ["Time", "Start Time", "End Time"],
                backtxt: "Back",
                clear: "Clear",
                today: "Now",
                yes: "Confirm",
                close: "Close"
            }
            jeDate("#sqTime", {
                festival: true,
                minDate: "1900-01-01",              //最小日期
                maxDate: "2099-12-31",              //最大日期
                method: {
                    choose: function (params) {

                    }
                },
                format: "YYYY-MM-DD hh:mm:ss"
            });

        </script>
</html>